﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DTO;
using DAO;
using BUS;

namespace giaodien
{
    public partial class thongtinloaiphong : Form
    {
        public thongtinloaiphong()
        {
            InitializeComponent();
        }

        private void button7_Click(object sender, EventArgs e)
        {
            this.WindowState = FormWindowState.Minimized;
        }

        private void button6_Click(object sender, EventArgs e)
        {
            DialogResult d = MessageBox.Show("Bạn Có Muốn Thoát", "Thông Báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
            if (d == DialogResult.Yes)
                this.Close();
        }

        private void thongtinloaiphong_MouseMove(object sender, MouseEventArgs e)
        {
            dichchuyen.MouseMove(this, MousePosition.X, MousePosition.Y);
        }

        private void thongtinloaiphong_MouseDown(object sender, MouseEventArgs e)
        {
            dichchuyen.MouseDown(e);
        }

        private void thongtinloaiphong_MouseUp(object sender, MouseEventArgs e)
        {
            dichchuyen.MouseUp();
        }

        private void thongtinloaiphong_Load(object sender, EventArgs e)
        {
            hienthithongtinloaiphong();
        }
        void hienthithongtinloaiphong()
        {
            loaiphong_DTO p = new loaiphong_DTO();
            DataSet ds = new DataSet();
            ds = phong_BUS.thongtinloaiphong();
            dtgvthongtinloaiphong.DataSource = ds.Tables[0];
        }

        private void nutxemthongtinloaiphong_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
